﻿using CameraModule;
using CommunicationModule;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace CommonModule
{
    public class Global
    {
        private string imagePath = "";
        private string ip = "127.0.0.1";
        private int com = 9000;
        private static readonly Global instance = new Global();
        private Global() { }

        public static Global Instance => instance;
        public void Initialize() 
        {
            BindDevice();

        }
        private void BindDevice()
        {
            //绑定相机
            //ICam camera = Assembly.Load("").CreateInstance("") as ICam;
            //绑定通讯
            TCPService.Instance.StartService(ip, com);
        }

    }
}
